import { ProxyConfigArray } from 'webpack-dev-server';

const proxy: ProxyConfigArray = [
    {
        context: (param: string) => !!param.match(/\/api\/.*/gm),
        target: 'https://cnodejs.org',
        secure: false,
        changeOrigin: true,
    },
];

export default proxy;
